package com.anjie.powerproject.service;

import com.anjie.powerproject.entity.StationInfo;

import java.util.List;
import java.util.Optional;

public interface StationInfoService {

    boolean checkInfoName(String infoName);  //检查名称是否重复

    List<StationInfo> findAllInfo();    //返回所有信息

    void deleteStationInfoById(Integer id);     //根据id删除

    void saveStationInfo(List list);     //添加

    void deleteStationInfoByStationName(String stationName);

    StationInfo findStationInfoById(Integer id);

    void updateStationInfo(StationInfo stationInfo);

    StationInfo findStationInfoLimitFirst();

}
